import os
import sys
from pathlib import Path


def main() -> None:
    project_root = Path(__file__).resolve().parents[1]
    if str(project_root) not in sys.path:
        sys.path.insert(0, str(project_root))

    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
    import django

    django.setup()
    from django.contrib.auth import get_user_model

    User = get_user_model()
    data = list(User.objects.values("id", "username", "is_staff", "is_superuser"))
    print(data)


if __name__ == "__main__":
    main()


